package com.fangxing.apps.example.jpa;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

/**
 * Created by fangxing on 17-6-20.
 */
@Repository
public interface UserJPARepository extends JpaRepository{
    User findByName(String name);
    User findById(String id);
}
